package ascloud.auth.config;

import io.swagger.v3.oas.annotations.OpenAPIDefinition;
import io.swagger.v3.oas.annotations.enums.SecuritySchemeType;
import io.swagger.v3.oas.annotations.info.Info;
import io.swagger.v3.oas.annotations.security.SecurityScheme;

@OpenAPIDefinition(info = @Info(title = "My App", description = "Some long and useful description", version = "v1"))
@SecurityScheme(name = "security_auth", type = SecuritySchemeType.OPENIDCONNECT, 
	openIdConnectUrl = "http://filbert-oauth2-authorization:8090/.well-known/openid-configuration")
//@SecurityScheme(name = "security_auth", type = SecuritySchemeType.OAUTH2,
//	flows = @OAuthFlows(
//		authorizationCode = @OAuthFlow(
//			authorizationUrl = "http://filbert-oauth2-authorization:8090/oauth2/authorize",
//			tokenUrl = "http://filbert-oauth2-authorization:8090/oauth2/token",
//			scopes = {
//				@OAuthScope(name = "springdoc.read", description = "read scope"),
//				@OAuthScope(name = "springdoc.write", description = "write scope")
//			}
//		)
//	)
//)
public class OpenApiConfig {
}
